Skip to content

tools, test: forbid string literal as third argument for assert.strictEqual() and friends#22849

Closed
Trott wants to merge 12 commits into
nodejs:masterfrom
Trott:strictequal-literal
Closed

tools, test: forbid string literal as third argument for assert.strictEqual() and friends#22849
Trott wants to merge 12 commits into
nodejs:masterfrom
Trott:strictequal-literal

Conversation

@Trott

@Trott Trott commented Sep 13, 2018

Copy link
Copy Markdown
Member

String literals provided as the third argument to assert.strictEqual() or assert.deepStrictEqual() will mask the values that are causing issues. Use a lint rule to prevent such usage.

@nodejs/testing @nodejs/linting

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.